package org.example.org.example

import org.example.Person
import org.koin.core.component.KoinComponent
import org.koin.core.component.inject

class PersonService : KoinComponent {
    private val personRepository: PersonRepository by inject()

    fun insertPerson(name: String, age: Long) {
        personRepository.insertPerson(name, age)
    }

    fun selectAllPeople(): List<Person> {
        return personRepository.selectAllPeople()
    }


}